/*    */ package com.umeng.newxp.view;
/*    */ 
/*    */ import android.content.Context;
/*    */ import android.view.LayoutInflater;
/*    */ import android.view.View;
/*    */ import android.view.View.OnClickListener;
/*    */ import android.view.animation.Animation;
/*    */ import android.view.animation.AnimationUtils;
/*    */ import android.view.animation.LinearInterpolator;
/*    */ import android.widget.ImageView;
/*    */ import com.umeng.newxp.a.a;
/*    */ import com.umeng.newxp.a.c;
/*    */ 
/*    */ public class aC
/*    */ {
/*    */   private Context a;
/*    */   private int b;
/*    */   private View c;
/*    */ 
/*    */   public aC(Context paramContext, int paramInt)
/*    */     throws Exception
/*    */   {
/* 22 */     this.a = paramContext;
/* 23 */     this.b = paramInt;
/* 24 */     LayoutInflater localLayoutInflater = (LayoutInflater)this.a
/* 25 */       .getSystemService("layout_inflater");
/*    */     try {
/* 27 */       this.c = localLayoutInflater.inflate(this.b, null);
/* 28 */       if (this.c == null)
/*    */       {
/* 30 */         throw new Exception("Failed to inflate " + this.b);
/*    */       }
/*    */     } catch (Exception localException) {
/* 33 */       throw localException;
/*    */     }
/*    */   }
/*    */ 
/*    */   public void a(View.OnClickListener paramOnClickListener) {
/* 38 */     this.c.setOnClickListener(paramOnClickListener);
/*    */   }
/*    */ 
/*    */   public View a() {
/* 42 */     return this.c;
/*    */   }
/*    */ 
/*    */   public void b() {
/* 46 */     ImageView localImageView = (ImageView)this.c.findViewById(
/* 47 */       c.z(this.a));
/* 48 */     if (localImageView == null)
/* 49 */       return;
/* 50 */     localImageView.setVisibility(0);
/*    */ 
/* 52 */     Animation localAnimation = null;
/* 53 */     if (localAnimation == null) {
/* 54 */       localAnimation = AnimationUtils.loadAnimation(this.a, 
/* 55 */         a.d(this.a));
/*    */     }
/* 57 */     localAnimation.setInterpolator(new LinearInterpolator());
/* 58 */     localAnimation.setAnimationListener(new aD(this));
/*    */ 
/* 73 */     localImageView.startAnimation(localAnimation);
/*    */   }
/*    */ 
/*    */   void c() {
/* 77 */     ImageView localImageView = (ImageView)this.c.findViewById(
/* 78 */       c.z(this.a));
/* 79 */     if (localImageView == null)
/* 80 */       return;
/* 81 */     localImageView.setVisibility(8);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.view.aC
 * JD-Core Version:    0.6.2
 */